/*
		Developer	: Md. Ali Umar
		Date	   	: Sep 03, 2011
		Requirement : Let Us C (Example:2.6)
*/
#include<stdio.h>
#include<conio.h>
#include<ctype.h>
void main()
{
	const char MALE = 'M',  FEMALE = 'F';
	const char GRADUATE = 'G',  POST_GRADUATE = 'P';
	char gender, quali;
	int yos, gs = 0;
	clrscr();

	printf("\n\n\n\t\tEnter the Qualification: ");
	quali = getche();
	quali = toupper(quali);

	printf("\n\n\n\t\tEnter the Gender: ");
	gender = getche();
	gender = toupper(gender);

	printf("\n\n\n\t\tEnter the YOS: ");
	scanf("%d", &yos);

	if(gender == MALE)
	{
		if(quali == POST_GRADUATE)
		{
			if(yos >= 10)
			{
				gs = 15000;
			}

			if(yos < 10)
			{
				gs = 10000;
			}
		}
		else if(quali == GRADUATE)
		{
			if(yos >= 10)
			{
				gs = 10000;
			}

			if(yos < 10)
			{
				gs = 7000;
			}
		}
	}
	else if(gender == FEMALE)
	{
		if(quali == POST_GRADUATE)
		{
			if(yos >= 10)
			{
				gs = 12000;
			}

			if(yos < 10)
			{
				gs = 10000;
			}

		}
		else if(quali == GRADUATE)
		{
			if(yos >= 10)
			{
				gs = 9000;
			}
			if(yos < 10 )
			{
				gs = 6000;
			}

		}

	}

	printf("\n\n\n\t\tGross Salary = %d",gs);

	getch();

}